Fix node issue and update devcontainer customizations to new guidelines#2
Open
dvlex wants to merge 5 commits intovalenvb:masterfrom
Open
Fix node issue and update devcontainer customizations to new guidelines#2dvlex wants to merge 5 commits intovalenvb:masterfrom
dvlex wants to merge 5 commits intovalenvb:masterfrom
Conversation
update devcontainer.json configuration to fit new style
Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: DevContainer Improvements and Environment Updates
Summary
This PR introduces several key improvements to the development environment, ensuring better compatibility, flexibility, and maintainability.
Changes
Node installation source updated
Node.js is now installed from the official distribution instead of a private repository, simplifying setup and improving reliability.
Dynamic user creation in DevContainer
The DevContainer no longer relies on a fixed user. Instead, it dynamically creates a user and group matching the host system, granting sudo privileges to allow passwordless CLI operations inside the container.
Added sudo library
The sudo package has been included to enable passwordless command execution, streamlining developer workflows.
PHP version upgrade
The DevContainer PHP version has been updated from 7.4 → 8.4, aligning with modern standards and ensuring compatibility with current WordPress requirements.
New make reload command
A make reload target has been added. When SQL files are placed inside the data folder, the command automatically configures them and reloads WordPress, simplifying database resets and migrations during development.
mpact